<div class="main layui-clear">
            <div class="wrap">
                <div class="content">
                    <div class="fly-tab fly-tab-index">
                        <span>
                            <a href="{:U('home/index/index')}">
                                全部
                            </a>
                            <a href="{:U('home/index/wu')}">
                                未结帖
                            </a>
                            <a href="{:U('home/index/cao')}" class="tab-this">
                                已采纳
                            </a>
                            <a href="{:U('home/index/jing')}">
                                精帖
                            </a>
                            <a href="{:U('home/index/my')}">
                                我的帖
                            </a>
                        </span>
                        <form action="{:U('home/index/so')}" class="fly-search">
                            <i class="iconfont icon-sousuo">
                            </i>
                            <input class="layui-input" autocomplete="off" placeholder="搜索内容，回车跳转"
                            type="text" name="q">
                        </form>
                        <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
                        <script type="text/javascript">
                            $(function  () {
                                $('.icon-sousuo').click(function() {
                                    $('.fly-search').submit();
                                });
                            })
                        </script>
                        <a href="{:U('home/publish/index')}" class="layui-btn jie-add">
                            发表新帖
                        </a>
                    </div>
                     <ul class="fly-panel fly-list fly-list-top">
                    <?php foreach ($sql as  $v) { ?>
                        <li class="fly-list-li">
                            <a href="{:U('home/u/index',array('id'=>$v['uid']))}" class="fly-list-avatar">
                                <img src="__ROOT__/<?php echo $v['face'] ?>" alt="纸飞机">
                            </a>
                            <h2 class="fly-tip">
                                <a href="{:U('home/Publish/homepage',array('id'=>$v['id']))}">
                                    <?php echo htmlspecialchars_decode($v['title']) ?>
                                </a>
                                <?php if ($v['tip']==1) { ?>
                                       <span class="fly-tip-stick">置顶</span>
                                    <?php }
                                    if ($v['tip']==2) { ?>
                                        <span class="fly-tip-jing">精帖</span>
                                    <?php }if ($v['tip']==3) { ?>
                                        <span class="fly-tip-stick">置顶</span>
                                        <span class="fly-tip-jing">精帖</span>
                                    <?php } ?>
                            </h2>
                            <p>
                                <span>
                                    <a href="{:U('home/u/index',array('id'=>$v['uid']))}">
                                        <?php echo $v['nickname'] ?>
                                    </a>
                                </span>
                                <span>
                                    发布时间<?php echo date("Y.m.d",$v['create_time']) ?>
                                </span>
                                <span>
                                    <?php echo $v['cname'] ?>
                                </span>
                                <span class="fly-list-hint">
                                    <i class="iconfont" title="回答">
                                        &#xe60c;
                                    </i>
                                    <?php echo $v['answer_num'] ?>
                                    <i class="iconfont" title="人气">
                                        &#xe60b;
                                    </i>
                                   <?php echo $v['view_num'] ?>
                                </span>
                            </p>
                        </li>
                    
                    <?php } ?>
                    </ul>
                    
                    <div style="text-align: center">
                        <div class="laypage-main">
                            <a href="/jie/page/2/" class="laypage-next">
                                更多求解
                            </a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="edge">
                <div class="fly-panel leifeng-rank">
                    <h3 class="fly-panel-title">
                        近一月回答榜 - TOP 12
                    </h3>
                    <dl>
                    <?php foreach ($rew as $v) { ?>
                       <dd>
                            <a href="{:U('home/u/index',array('id'=>$v['id']))}">
                                <img src="__ROOT__/<?php echo $v['face'] ?>">
                                <cite>
                                    <?php echo $v['nickname'] ?>
                                </cite>
                                <i>
                                    <?php echo $v['answer_num'] ?>次回答
                                </i>
                            </a>
                        </dd> 
                       <?php } ?>
                            
                    </dl>
                </div>
                <dl class="fly-panel fly-list-one">
            <dt class="fly-panel-title">
                最近热帖
            </dt>
            <?php foreach ($arr as $v) { ?>
            <dd>
                <a href="{:U('home/Publish/homepage',array('id'=>$v['id']))}">
                   <?php echo $v['title'] ?>
                </a>
                <span>
                    <i class="iconfont">
                        
                    </i>
                    <?php echo $v['view_num'] ?>
                </span>
            </dd>
            <?php } ?>
        </dl>
        <dl class="fly-panel fly-list-one">
            <dt class="fly-panel-title">
                    近期热议
                </dt>
            <?php foreach ($row as $v) { ?>
                
                <dd>
                    <a href="{:U('home/Publish/homepage',array('id'=>$v['id']))}">
                        <?php echo $v['title'] ?>
                    </a>
                    <span>
                        <i class="iconfont">
                            
                        </i>
                        <?php echo $v['answer_num'] ?>
                    </span>
                </dd>
            <?php } ?>
                
        </dl>
               
               
            </div>
        </div>